// import HomeView from '../views/HomeView.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('../views/home.vue'),
    redirect: '/match',
    children: [
      {
        path: 'match',
        name: 'match',
        component: () => import('../views/match.vue'),
        meta:{
          title: "赛事分析"
        }
      },
      {
        path: 'deep',
        name: 'deep',
        component: () => import('../views/deep.vue'),
        meta: {
          title: "深度解读"
        }
      },
      {
        path: 'injury',
        name: 'injury',
        component: () => import('../views/injury.vue'),
        meta: {
          title: "伤停情报"
        }
      },
    ]
  },
  {
    path: '/detail/:type/:id',
    name: 'detail',
    component: () => import('../views/detail.vue'),
    meta: {
      title: "文章详情"
    }
  },
  {
    path: '/mdetail/:type/:id',
    name: 'mdetail',
    component: () => import('../views/matchDetail.vue'),
    meta: {
      title: "赛事详情"
    }
  },
  {
    path: '/shop',
    component: () => import('../views/shop.vue'),
    meta: {
      title: "店铺展示页"
    }
  },
  {
    path: '/calculator',
    name: 'calculator',
    component: () => import('../views/calculator.vue'),
    meta: {
      title: "计算器"
    }
  },
  {
    path: '/bonusOptimize',
    name: 'bonusOptimize',
    component: () => import('../views/bonusOptimize.vue'),
    meta: {
      title: "奖金优化"
    }
  },
  {
    path: '/calcResult',
    name: 'calcResult',
    component: () => import('../views/poster.vue'),
    meta: {
      title: "海报生成页"
    }
  },
  {
    path: '/saveDesktop',
    name: 'saveDesktop',
    component: () => import('../views/saveDesktop.vue'),
    meta: {
      title: "添加到桌面"
    }
  },
]

export default routes
